package cn.yunyichina.provider.framework.common;

/**
 * 全局返回码
 * Created by Lullaby on 2016/10/10.
 */
public interface ResponseEnum {

    enum Common {

        FAILURE("-1", "failure"),
        SUCCESS("0", "success"),
        INVALID("1", "invalid parameters"),
        REMOTE_FAILURE("1", "remote method [%s] call failed"),
        PARAMETRE_ERR("5","parameters error")
        ;

        private String code;

        private String message;

        Common(String code, String message) {
            this.code = code;
            this.message = message;
        }

        public String getCode() {
            return this.code;
        }

        public String getMessage() {
            return this.message;
        }

    }

}
